<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('room')} > ${i18n.getMessage('add')}">
</@showTitle>

<div id="error" style="display:none"></div>

<form action="materialFacilities/addRoom.sgt" validator="materialFacilities/validateRoom.sgt" onsubmit="submitFormValidation(this); return false;" onreset="$('error').hide()">
	
	<table id="dataTable" align="center" cellspacing="5" cellpadding="0">
		<tr>
			<td class="name">${i18n.getMessage('location')}:</td>
			<td>
				<select name="locationId" style="width:205px">
					<option></option>
					<#list locations as location>
						<option value="${location.id}">${location.name}</option>
					</#list>
				</select>
			</td>
		</tr>
		<tr>
			<td class="name"><@required/>${i18n.getMessage('code')}:</td>
			<td><input type="text" name="code" style="width:200px"/> </td>
		</tr>
		<tr>
			<td class="name"><@required/>${i18n.getMessage('name')}:</td>
			<td><input type="text" name="name" style="width:200px"/> </td>
		</tr>
		<tr>
			<td class="name"><@required/>${i18n.getMessage('seatCount')}:</td>
			<td><input type="text" name="seatCount" style="width:200px"/></td>
		</tr>
		<tr>
			<td class="name" style="vertical-align:top">${i18n.getMessage('comment')}:</td>
			<td><textarea style="width:350px;height:80px"></textarea></td>
		</tr>
		<tr>
			<td class="name"></td>
			<td>
				<input type="submit" value="${i18n.getMessage('add')}" class="button_style"/> 
				<input type="reset" value="${i18n.getMessage('reset')}" class="button_style"/> 
			</td>
		</tr>
	</table>
</form>
